package org.dey.controller;

import org.dey.entity.Result;
import org.dey.pojo.PageVo;
import org.dey.pojo.RiskAssessment;
import org.dey.service.RenqunfeileiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author hg
 * @date 2022/4/6
 * @classname
 */
@RestController
public class RenqunfeileiController {

    @Autowired
    RenqunfeileiService renqunfeileiService;

    @GetMapping("renqunfenlei.action/{pageNum}/{pagesize}")
    public PageVo<RiskAssessment> renqunfeileiXx(@PathVariable int pageNum,
                                              @PathVariable int pagesize){

        PageVo<RiskAssessment> riskAssessments =  renqunfeileiService.renqunfeileiXx(pageNum,pagesize);

        return riskAssessments;
    }

    @GetMapping("shezhifenlei.action/{id1}/{id2}/{id3}")
    public Result rqfl(@PathVariable int id1,
                       @PathVariable int id2,
                       @PathVariable int id3){

        Result result =  renqunfeileiService.rqfl(id1,id2,id3);

        return result;
    }

}
